const LogRouter = require('koa-router');
const kingdeeApis = require('../bl/kingdeeApi');
const kingdeeOldApi = require('../bl/kingdeeOldApi');
// 配送中心合顺
const logDiscenterHssm = require('../bl/isvProject/logDiscenterHssm');

const router = new LogRouter({
    prefix: '/zlz_api',
});


/**
 * 新接口 2.0版本
 */
router.get('/kingdeeApi', kingdeeApis.kingdeeApi);
router.post('/kingdeeApi', kingdeeApis.kingdeeApi);

/**
 * 旧接口 1.0 版本
 */
router.get('/kingdeeOldApi', kingdeeOldApi.kingdeeOldApi);
router.post('/kingdeeOldApi', kingdeeOldApi.kingdeeOldApi);

/**
 * 自定义接口 - 合顺商贸
 */
router.post('/discentershssm/login', logDiscenterHssm.loginISV);  // 登录接口
router.post('/discentershssm/get_pickingslip', logDiscenterHssm.pickingslip);  // 查询拣货单
router.post('/discentershssm/update_sal_order_list', logDiscenterHssm.updateSalOrderList);  // 核验确认【更新销售订单与商品分录信息】



module.exports = router;
